package com.mt.channel.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.mt.channel.entity.ChannelMsgEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;

@FeignClient(name = "channelService")
public interface ChannelMsgFeign {
    @GetMapping("/channelMsg/findList")
    ServiceResult<List<ChannelMsgEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    @GetMapping("/channelMsg/findInfo")
    ServiceResult<ChannelMsgEntity> findInfo(Map<String, Object> params);

    @PostMapping("/channelMsg/changeStatus")
    ServiceResult<Integer> doUpdate(ChannelMsgEntity channelMsgEntity);

}
